﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="UserImport.aspx.cs" Inherits="BSCMFF.Web.Pages.Administration.UserImport" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>



<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">



    

    <asp:Panel ID="PanelInstuctions" runat="server" 
        meta:resourcekey="PanelInstuctionsResource1" >
        <div style="float:left" >
            <asp:ImageButton ID="ImageButtonZip" runat="server" 
                ImageUrl="~/Images/zip_icon.jpg" AlternateText="Instructions"
             
                onclick="ImageButtonZip_Click" 
                meta:resourcekey="ImageButtonZipResource1" />
        </div>
        <asp:Label ID="LabelInstructions" runat="server"  Font-Size="Small" 
        
            Text="BSC MFF makes it possible to upload your employee data without having to enter each one individually. 
            Use the icon to the left to download a zip file that provides specific instructions for formatting and uploading your data. 
            Also included in the zip file is a standard data template that you will use in the upload process." meta:resourcekey="LabelInstructionsResource1"
        ></asp:Label>
    </asp:Panel>


        

<asp:Panel ID="PanelUploadControls" runat="server" 
        meta:resourcekey="PanelUploadControlsResource1" >
        <telerik:RadUpload ID="RadUploadCSV" runat="server" AllowedFileExtensions="csv" 
            ControlObjectsVisibility="None" meta:resourcekey="RadUploadCSVResource1" >
        </telerik:RadUpload>
        <telerik:RadButton ID="ButtonShowPreview" runat="server" Text="Show Preview" onclick="ButtonShowPreview_Click"
        ToolTip="This will show first 5 records" 
            meta:resourcekey="ButtonShowPreviewResource1"  />
    </asp:Panel>
    <br /><br />
    <asp:Panel ID="PanelPreview" runat="server" Visible="False" 
        meta:resourcekey="PanelPreviewResource1" >
        <asp:Label ID="LiteralPreview" runat="server" Text="Preview" 
            meta:resourcekey="LiteralPreviewResource1" ></asp:Label>
        <br />
        <telerik:RadGrid ID="RadGridPreview" runat="server" CellSpacing="0" 
            GridLines="None" meta:resourcekey="RadGridPreviewResource1" >
            <MasterTableView >
                <CommandItemSettings ExportToPdfText="Export to PDF" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                </ExpandCollapseColumn>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
        </telerik:RadGrid>
        
        <telerik:RadButton ID="RadButtonConfirmUpload" runat="server" 
            Text="Import Into Database" onclick="RadButtonConfirmUpload_Click" 
            meta:resourcekey="RadButtonConfirmUploadResource1">
        </telerik:RadButton>
    </asp:Panel>
    <asp:Panel ID="PanelSuccess" runat="server" Visible="False" 
        meta:resourcekey="PanelSuccessResource1">
        <asp:Label ID="LabelSuccess" runat="server" 
            meta:resourcekey="LabelSuccessResource1"  ></asp:Label>
    </asp:Panel>
    <asp:Panel ID="PanelErrors" runat="server" Visible="False" 
        meta:resourcekey="PanelErrorsResource1" >
        <br />
        <br />
        <asp:Literal ID="LiteralErrors" runat="server" Text="Invalid Data" 
            meta:resourcekey="LiteralErrorsResource1" ></asp:Literal>
        <br />
        <telerik:RadGrid ID="RadGridErrors" runat="server" CellSpacing="0" 
            GridLines="None" meta:resourcekey="RadGridErrorsResource1"   >
            <MasterTableView >
            
                <CommandItemSettings ExportToPdfText="Export to PDF" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                </ExpandCollapseColumn>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
        </telerik:RadGrid>
    <telerik:RadButton ID="RadButtonExportCSV" runat="server" Text="Export CSV with errors" 
            onclick="RadButtonExportCSV_Click" 
            meta:resourcekey="RadButtonExportCSVResource1">
    </telerik:RadButton>
    </asp:Panel>

</asp:Content>
